import { act } from 'react-dom/test-utils';
import * as actionType from './actionType';

export default (state = {}, action) => {
    switch (action.type) {
        case actionType.GET_WARNING: {
            return {
                ...state,
                LinerWarning: action.LinerWarning,
                totalCount:action.totalCount
            }
        }
        case actionType.GET_SUSPECTED_STATUS:{
            return {
                ...state,
                treatedDataSize:action.treatedDataSize,
                untreatedDataSize:action.untreatedDataSize,
                LinerWarning:action.LinerWarning,
                totalCount:action.totalCount
            }
        }
        case actionType.GET_COUNTER:{
            return {
                ...state,
                treatedDataSize:action.treatedDataSize,
                untreatedDataSize:action.untreatedDataSize,
            }
        }
        default:
            return state;
    }
}